home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DU Projects / Graphics3D / Sources / Part.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.5 KB  |  51 lines  |  [TEXT/CWIE]

  1. //========================================================================================
  2. //    Release Version:    $ ODF 2 $
  3. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  4. //========================================================================================
  5.  
  6. #ifndef PART_H
  7. #define PART_H
  8.  
  9. //=======================================================================
  10. // ----- Framework Includes -----
  11. #ifndef FWPART_H
  12. #include "FWPart.h"            // FW_CPart
  13. #endif
  14.  
  15. // ----- Foundation Layer -----
  16. #ifndef FWSTDDEF_H
  17. #include <FWStdDef.h>        // ?
  18. #endif
  19.  
  20. //=======================================================================
  21. class FW_CMenuEvent;
  22. class FW_CPresentation;
  23. class CGraphics3DContent;
  24.  
  25. //=======================================================================
  26. class CGraphics3DPart : public FW_CPart {
  27. public:
  28.     FW_DECLARE_AUTO(CGraphics3DPart)
  29.     
  30.                         CGraphics3DPart(ODPart* odPart);
  31.     virtual             ~CGraphics3DPart();
  32. // overrides
  33. protected:
  34.     virtual FW_CContent* NewPartContent(Environment* ev);
  35.     virtual void         Initialize(Environment* ev,
  36.                                     ODStorageUnit* storageUnit, 
  37.                                     FW_Boolean fromStorage);
  38.     virtual FW_CFrame*    NewFrame(Environment* ev,
  39.                                  ODFrame* odFrame,
  40.                                  FW_CPresentation* presentation,
  41.                                  FW_Boolean fromStorage);
  42.     virtual FW_Handled    DoAbout(Environment* ev);
  43. // new members
  44. private:
  45.     FW_CPresentation*        fPresentation;
  46.     CGraphics3DContent*        fPartContent;
  47. };
  48.  
  49. //=======================================================================
  50. #endif
  51.